<%@ page import="com.czw.User" %>
<%@ page import="java.util.List" %>
<%@ page import="java.util.ArrayList" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Show</title>
    <script type="text/javascript"  src="jquery.js"></script>
    <script>
    </script>
</head>
<body>
<form  method="post"><br><br>
    <table border="1">
        <tr><td>Id</td><td>名字</td><td>年龄</td></tr>
        <%
            List<User> lists=(ArrayList<User>) session.getAttribute("users");
            for(int i=0;i<lists.size();i++){
                User user=new User();
                user=lists.get(i);
        %>
        <tr><td><%=user.getId()%></td><td><%=user.getName()%></td><td><%=user.getAge()%></td></tr>
        <%
            }
        %>
    </table>
</form>
</body>
</html>